import request from '@/utils/request'

// 注册接口
export const userRegisterService = ({ username, password, repassword }) =>
  request.post('/api/reg', { username, password, repassword })
// 登录请求接口
export const userLoginService = ({username,password}) => {
  request.post('path',{username,password})
}

// 发送请求接口
export const getMsgCode = (phone) => {
  request.get('path',{phone})
}



// export const getfriends = (params) => {
//   return request.get('/topnews/index', {
//     params});
// };
export const getfriends = (param) =>{
  return request.get('/generalnews/index',{params:param})
}

